home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
lisp
/
elk-2_0.lha
/
elk-2.0
/
Makefile
< prev
next >
Wrap
Makefile
|
1992-11-08
|
2KB
|
80 lines
# SUBDIRS lists the components of Elk that are compiled and installed by
# running "make" and "make install". The subdirectory "src" holds the
# interpreter proper; a mininum configuration requires the SUBDIRS include,
# scripts, src, and scm.
#
# Subdirectories if lib/ hold the standard extensions. Delete them or
# parts of them from SUBDIRS if you don't want them to be compiled and
# installed; delete lib/xm and lib/xm/xt if you don't have Motif on your
# system.
SUBDIRS= include\
scripts\
src\
scm\
lib/util\
lib/misc\
lib/xlib\
lib/xt\
lib/xaw\
lib/xm\
lib/xm/xt
# ----------------------------------------------------------------------
SHELL= /bin/sh
MAKE= make
GTAR= gtar
default:
@for i in $(SUBDIRS) ;\
do \
echo Making $$i...; \
( cd $$i ; $(MAKE) ) \
done
install:
@for i in $(SUBDIRS) ;\
do \
echo Installing $$i...; \
( cd $$i ; $(MAKE) install ) \
done
lint:
@for i in $(SUBDIRS) ;\
do \
echo Linting $$i...; \
( cd $$i ; $(MAKE) lint ) \
done
clean:
@for i in $(SUBDIRS) ;\
do \
echo Cleaning $$i...; \
( cd $$i ; $(MAKE) clean ) \
done
distclean:
@for i in $(SUBDIRS) ;\
do \
echo Cleaning $$i...; \
( cd $$i ; $(MAKE) distclean ) \
done
DISTF= ANNOUNCE RELEASE README CHANGES INSTALL MACHINES COPYRIGHT CONTRIBUTORS\
TODO MIGRATE Makefile config doc examples include lib scm scripts\
src util contrib ExcludeFiles
dist:
echo elk-`grep "^This is release" RELEASE | awk '{print $$4}'` > .rel
rm -rf `cat .rel`
mkdir `cat .rel`
for i in $(DISTF) ;\
do \
(cd `cat .rel`; ln -s ../$$i) \
done
$(GTAR) -cvf `cat .rel`.tar -h -X ExcludeFiles `cat .rel`
compress -f `cat .rel`.tar
rm -rf `cat .rel` .rel